FROM nginx
COPY dist /var/hbsystem/ui
COPY default.template /etc/nginx/conf.d/
ENV API_SERVER_ADDR localhost
ENV API_SERVER_PORT 8080
ENTRYPOINT [ "/bin/bash", "-c", "envsubst < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"]



